Graphics.DrawPicture Method

Draws the picture at the specified location. The optional parameters (surrounded by []) are used to copy a portion of the picture and for scaling the picture.

Syntax

Graphics.DrawPicture Image, X, Y, [DestWidth], [DestHeight], [SourceX], [SourceY], [SourceWidth], [SourceHeight]


Parameters

Image

Picture

X

Integer

Y

Integer

DestWidth (Optional)

Integer

DestHeight (Optional)

Integer

SourceX (Optional)

Integer

SourceY (Optional)

Integer

SourceWidth (Optional)

Integer

SourceHeight (Optional)

Integer


DestWidth and DestHeight are used to change the scaling of the picture when it is drawn and default to the Width and Height of the picture. SourceX and SourceY default to 0 and are used to determine the upper-left coordinate you wish to copy from. SourceWidth and SourceHeight default to the Width and Height of the picture and are used to indicate the portion of the picture you wish to copy.